#at first type on ur terminal that $(uname -r) then u will get the version..
# that is using on ur system

obj-m += global_fifo.o

KDIR =/lib/modules/$(shell uname -r)/build

all:
	$(MAKE) -C $(KDIR) M=$(PWD) modules

test:
	cat /dev/globalfifo &
	echo "hello word." > /dev/globalfifo
	echo "this is a global fifo demo" > /dev/globalfifo
	kill -9 `pidof cat /dev/globalfifo`

clean:
	$(MAKE) -C $(KDIR) M=$(PWD) clean
